package com.yuju.group.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuju.common.core.dao.IBaseDao;
import com.yuju.common.core.service.AbstractBaseService;
import com.yuju.group.dao.IGroupParamDao;
import com.yuju.group.dao.entity.GroupParam;
import com.yuju.group.dao.entity.GroupParamKey;
import com.yuju.group.model.GroupParamModel;
import com.yuju.group.service.IGroupParamService;

/**
 * 
 * 类名：GroupParamServiceImpl  <br />
 *
 * 功能：集团参数Service
 *
 * @author : xuehj <br />
 * @Date : 2018年1月30日 下午8:01:18  <br />
 * @version : 1.1 <br />
 */
@Service
public class GroupParamServiceImpl extends AbstractBaseService<GroupParamModel,GroupParam,GroupParamKey> implements IGroupParamService{
	@Autowired
	private IGroupParamDao groupParamDao;
	
	@Override
	public IBaseDao<GroupParamModel,GroupParam,GroupParamKey> getDao() {
		// TODO Auto-generated method stub
		return groupParamDao;
	}
	
	@Override
	public int save(GroupParamModel groupParamModel){
		return this.getDao().saveSelective(groupParamModel);
	}
	
	@Override
	public int initGroupParam(String groupId) {
		// TODO Auto-generated method stub
		return groupParamDao.initGroupParam(groupId);
	}
}
